# 基础镜像信息
FROM centos
# 创建目录
RUN mkdir -p /usr/local/django
# 拷贝文件
ADD ./ /usr/local/django
# 设置工作目录
WORKDIR /usr/local/django
# 安装requirements
RUN yum install wget
RUN yum install python3
RUN yum install pip3
RUN pip3 install --no-cache-dir -r requirements.txt
CMD ["python3","manage.py", "migrate"]
CMD ["python3","manage.py", "runserver"," 0.0.0.0:8000"]
EXPOSE 8000